package tp.util;

import facade.FacadeExecution;
import tp.model.Client;

public class DataSingleton {

	public static DataSingleton dataSing;

	private Client client;
	private FacadeExecution facade;
	
	public FacadeExecution getFacade() {
		if(facade == null)
		{
			facade = new FacadeExecution(true);
		}
		return facade;
	}

	public void setFacade(FacadeExecution facade) {
		this.facade = facade;
	}

	private DataSingleton() {
	}

	public static DataSingleton getInstance() {
		if(dataSing == null)
		{
			dataSing =new DataSingleton();
		}
		return dataSing;
	}

	public Client getClient() {
		return client;
	}

	public void setClient(Client client) {
		this.client = client;
	}
}
